home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Star Software Collection
/
NSS_Collection.iso
/
3-004 ms visual basic pro 30
/
3.imz
/
3.IMA
/
MAILOPTF.FR_
/
MAILOPTF.bin
Wrap
Text File
|
1993-04-28
|
8KB
|
250 lines
VERSION 2.00
Begin Form MailOptFrm
BorderStyle = 3 'Fixed Double
Caption = "Mail Options"
ClientHeight = 3195
ClientLeft = 1620
ClientTop = 1860
ClientWidth = 7500
Height = 3600
Left = 1560
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 7500
Top = 1515
Width = 7620
Begin PictureBox MessageOption
BorderStyle = 0 'None
Enabled = 0 'False
Height = 555
Left = 3720
ScaleHeight = 555
ScaleWidth = 3735
TabIndex = 12
TabStop = 0 'False
Top = 0
Visible = 0 'False
Width = 3735
Begin CheckBox retRecip
Caption = "&Return Recipt"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Left = 960
TabIndex = 8
Top = 120
Width = 1815
End
End
Begin PictureBox GeneralOption
BorderStyle = 0 'None
Enabled = 0 'False
Height = 2535
Left = 0
ScaleHeight = 2535
ScaleWidth = 3675
TabIndex = 11
TabStop = 0 'False
Top = 0
Visible = 0 'False
Width = 3675
Begin CheckBox DownLoad
Caption = "&Down Load Mail"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 1
Top = 480
Width = 3315
End
Begin CheckBox NewSess
Caption = "&New Session"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 2
Top = 840
Width = 3195
End
Begin CheckBox LogonUI
Caption = "&Logon UI"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 315
Left = 120
TabIndex = 3
Top = 1200
Width = 3135
End
Begin TextBox UserName
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 360
Left = 1380
TabIndex = 5
Top = 1620
Width = 2115
End
Begin TextBox MailPassWord
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 360
Left = 1380
PasswordChar = "*"
TabIndex = 7
Top = 2040
Width = 2115
End
Begin CheckBox SendMapiDLG
Caption = "&Send w/ MAPI Dialogs"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 315
Left = 120
TabIndex = 0
Top = 60
Width = 3255
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&User Name:"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Left = 120
TabIndex = 4
Top = 1740
Width = 1155
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Password:"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Left = 240
TabIndex = 6
Top = 2160
Width = 1020
End
End
Begin CommandButton CancelBt
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 1980
TabIndex = 10
Top = 2640
Width = 1035
End
Begin CommandButton OkBt
Caption = "Ok"
Default = -1 'True
Height = 375
Left = 720
TabIndex = 9
Top = 2640
Width = 1035
End
End
Sub CancelBt_Click ()
'--- Unload the current form, save no changes
Unload Me
End Sub
Sub Form_Load ()
'------------------------------------------------------
' Setup initial values for the checkboxes/edit fields
'------------------------------------------------------
UserName = VBMail.MapiSess.UserName
MailPassWord = VBMail.MapiSess.Password
NewSession = Abs(VBMail.MapiSess.NewSession)
LogonUI = Abs(VBMail.MapiSess.LogonUI)
DownloadMail = Abs(VBMail.MapiSess.DownloadMail)
SendMapiDLG = Abs(SendWithMapi)
RetRecip = Abs(ReturnRequest)
Select Case OptionType
Case Option_Message
Call SetupOptionForm(MessageOption)
Case Option_General
Call SetupOptionForm(GeneralOption)
End Select
End Sub
Sub Form_Unload (Cancel As Integer)
Select Case OptionType
Case Option_Message
Call SetupOptionForm(MessageOption)
Case Option_General
Call SetupOptionForm(GeneralOption)
End Select
End Sub
Sub OkBt_Click ()
'------------------------------------------------------
' Save the user's changes
'
' Feature Addition: Save values to an INI File
'------------------------------------------------------
VBMail.MapiSess.UserName = UserName
VBMail.MapiSess.Password = MailPassWord
VBMail.MapiSess.NewSession = NewSession
VBMail.MapiSess.LogonUI = LogonUI
VBMail.MapiSess.DownloadMail = DownloadMail
SendWithMapi = SendMapiDLG
ReturnRequest = RetRecip
Unload Me
End Sub
Sub SetupOptionForm (BasePic As Control)
BasePic.Top = 0
BasePic.Left = 0
BasePic.Visible = True
BasePic.Enabled = True
OkBt.Top = BasePic.Height + 120
CancelBt.Top = BasePic.Height + 120
Me.Width = BasePic.Width + 120
Me.Height = OkBt.Top + OkBt.Height + 495
End Sub